package com.youkeyi.ddy.cloud.common.api.application.business.crm.source;

import com.youkeyi.ddy.cloud.common.api.application.business.crm.source.dto.BusinessSourceListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.business.crm.source.param.BusinessSourceCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.crm.source.param.BusinessSourceDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.crm.source.param.BusinessSourceListCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.crm.source.param.BusinessSourceUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * BusinessSourceCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 1/28/22 4:12 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/business/source/fallback")
public class BusinessSourceCloudServiceFallback implements BusinessSourceCloudService {

    @Override
    public BusinessSourceListCloudDto list(BusinessSourceListCloudParam param) {
        return new BusinessSourceListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(BusinessSourceCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(BusinessSourceUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(BusinessSourceDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
